package com.snopy.item.service;

import com.snopy.pojo.PagedGridResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @author snopy
 * @version 1.0.0
 * @classname ItemCommentsService
 * @description
 * @email 77912204@qq.com
 * @date 2022/03/09 12:43
 */
@FeignClient("snopy-item-service")
@RequestMapping("item-comments-api")
public interface ItemCommentsService {
    /**
     * 我的评价查询 分页
     * @param userId
     * @param page
     * @param pageSize
     * @return
     */
    @GetMapping("/queryMyComments")
    public PagedGridResult queryMyComments(@RequestParam("userId") String userId,
                                           @RequestParam(value = "page", required = false) Integer page,
                                           @RequestParam(value = "pageSize", required = false) Integer pageSize);
    @PostMapping("/saveComments")
    public void saveComments(@RequestBody Map<String, Object> map);
}
